/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.thienloc.omap.util;

import org.glassfish.api.jdbc.SQLTraceListener;
import org.glassfish.api.jdbc.SQLTraceRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author GiangLT
 */
public class SqlLogger implements SQLTraceListener {

    private final Logger logger = LoggerFactory.getLogger(SqlLogger.class);

    @Override
    public void sqlTrace(SQLTraceRecord sqltr) {
        logger.debug(sqltr.toString());
    }
}
